package eenum;

/**
 * @author chihb
 * @create-time 2024/6/29 8:34
 * @description
 */
public class Test {
    public static void main(String[] args) {
        A a1 = A.X;
        System.out.println(a1);
        //枚举类提供一个一些额外的API
        A[] as=A.values();//拿到全部对象
        A a3=A.valueOf("Z");
        System.out.println(a3.name());
        System.out.println(a3.ordinal());
    }
}
